<?php

namespace App\Rep;

use App\Models\OrderRemark;

class OrderRemarkRep
{
    /**
     * 添加订单备注
     * @param $order_id
     * @param $mujia
     * @param $mianliao
     * @param $teshu
     * @param $zuoweishu
     * @param $haimian
     * @param $chuangdianhoudu
     * @param $chuangxianggaodu
     * @param $pinpai
     * @return void
     */
    public function addOrderRemark($order_id,$mujia,$mianliao,$teshu,$zuoweishu,$haimian,$chuangdianhoudu,$chuangxianggaodu,$pinpai){
        $obj = OrderRemark::updateOrCreate(
            ['order_id'=>$order_id],
            [
                'order_id'=>$order_id,
                'mujia'=>$mujia,
                'mianliao'=>$mianliao,
                'teshu'=>$teshu,
                'zuoweishu'=>$zuoweishu,
                'haimian'=>$haimian,
                'chuangdianhoudu'=>$chuangdianhoudu,
                'chuangxianggaodu'=>$chuangxianggaodu,
                'pinpai'=>$pinpai
            ]
        );
        return $obj;
    }

}
